//
//  JMXMessageViewCell.h
//  jmx
//
//  Created by JMX on 2020/4/28.
//  Copyright © 2020 Uniauto. All rights reserved.
//

#import "JMXMessageViewCell.h"

NS_ASSUME_NONNULL_BEGIN

@class JMXMessageChatCell;
@protocol JMXMessageChatCellDelegate <JMXMessageViewCellDelegate, UIGestureRecognizerDelegate>

@optional
- (void)messageViewCellAvatarDidClick:(__kindof JMXMessageChatCell *)cell;
- (void)messageViewCellMenuControllerWillShow:(__kindof JMXMessageChatCell *)cell;

- (void)messageViewCellDidDelete:(__kindof JMXMessageChatCell *)cell;
- (void)messageViewCellDidRecall:(__kindof JMXMessageChatCell *)cell;
- (void)messageViewCellDidMove:(__kindof JMXMessageChatCell *)cell;
- (void)messageViewCellDidForward:(__kindof JMXMessageChatCell *)cell;
- (void)messageViewCellDidMultiSelect:(__kindof JMXMessageChatCell *)cell;

- (BOOL)messageViewCellShouldSelectable:(__kindof JMXMessageChatCell *)cell;
- (void)messageViewCell:(__kindof JMXMessageChatCell *)cell didSelected:(BOOL)isSelected;

@end


@interface JMXMessageChatCell : JMXMessageViewCell

// 头像
@property (nonatomic, strong) UIImageView *avatarView;
// 昵称（姓名）
@property (nonatomic, strong) UILabel *nameLabel;
// 消息状态
@property (nonatomic, strong) UIButton *statusView;
// 发送中
@property (nonatomic, strong) UIActivityIndicatorView *indicatorView;
// 消息气泡
@property (nonatomic, strong) UIView *bubbleView;
// 消息气泡背景色
@property (nonatomic, strong) UIColor *bubbleTintColor;
// 选中
@property (nonatomic, strong) UIButton *selectButton;

@property (nonatomic, weak) id<JMXMessageChatCellDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
